<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<link href="${ctx }/static/tool/16sucai_com.css" rel="stylesheet" type="text/css" />
<link href="${ctx }/webresources/skin/vista/artDialog/artDialog.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx }/static/tool/include.js"></script>
<script type="text/javascript" src="${ctx }/webresources/component/artDialog/artDialog.js"></script>
<script type="text/javascript" src="${ctx }/webresources/component/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript" src="${ctx }/static/js/artdialogTools.js"></script>
<script type="text/javascript">
window.setInterval("FloatScroll()",1);
	$(document).ready(function(){
		iniComm();
		
	});
	
	//获取
	function iniComm(){
		$.post("${ctx }/center",{},function(data){
			if(data != ""){
				var comm = data.c;
				var spanthml = "";
				$.each(comm,function(inx,obj){
					spanthml += "<a href='javascript:rlush(this," + obj.id + ")'";
					spanthml += " id='"+obj.id+"'>";
					spanthml += obj.name + "</a>  ";
				});
				$("#commSpan").html(spanthml);
				
				var bu = data.b;
				var spanthml = "";
				$.each(bu,function(inx,obj){
					spanthml += "<a href='javascript:openWin(" + obj.id + ")'";
					spanthml += " id='"+obj.id+"'>";
					spanthml += obj.name + "</a>  ";
				});
				$("#buildSpan").html(spanthml);
				
			}
		},"json");
	}
	
	//获取楼栋
	function rlush(obj,buildId){
		$.post("${ctx }/center/buildList/" + buildId,{},function(data){
			if(data == ""){
				reutrn;
			}
			$("#buildSpan").empty();
			var spanthml = "";
			$.each(data,function(inx,obj){
				spanthml += "<a href='javascript:openWin(" + obj.id + ")'";
				spanthml += " id='"+obj.id+"'>";
				spanthml += obj.name + "</a>  ";
			});
			$("#buildSpan").html(spanthml);
		},"json");
	}
	
	function openWin(id){
		art.dialog.open('${ctx }/center/detail/' + id);
	}
</script>

<TABLE height=79 cellSpacing=0 cellPadding=0 width="101%" border=0>
  <TBODY>
  <tr>
     <td height="8" colspan="3" bgcolor="002f3f"> </td>
    </tr>
    <TR borderColorDark=191919>
    <TD width="269" height="62" bgColor=002f3f><img height=61 src="${ctx}/static/images/top_logo1.jpg"  width=269></TD>
    <TD width="157"   height="62" bgColor=002f3f>   
    
    <div id="menu">
    <ul class="menu">
    <shiro:user>
        <li><a href="javascript:void();" ><span>首页</span></a></li>
        <li><a href="javascript:void();" class="parent"><span>收费</span></a>
         <div><ul>
                <li><a href="${ctx }/payfor/pay"><span>收 费</span></a></li>
                <li><a href="sf/sf-tj.htm" target="admin"><span>统 计</span></a></li>
            </ul></div>
           
        </li>
          <li><a href="javascript:void();" class="parent"><span>管理</span></a>
            <div><ul>
                <li><a href="${ctx}/base/company" ><span>物业管理</span></a></li>
                <li><a href="${ctx }/base/community" ><span>小区管理</span></a></li>
                <li><a href="${ctx }/base/building" ><span>楼栋管理</span></a></li>
                <li><a href="${ctx }/base/house" ><span>房屋管理</span></a></li>
               
            </ul></div>
        </li>
   
   
   
        <li><a href="javascript:void();" class="parent"><span>抄表管理</span></a>
            <div><ul>
                <li><a href="cbx/cbxf.html" target="admin"><span>抄表管理</span></a></li>
                <li><a href="${ctx }/base/fee/scale"><span>交费基准</span></a></li>
                <li><a href="${ctx }/base/fee/plan"><span>收费方案</span></a></li> 
            </ul></div>
          </li>
         <li><a href="javascript:void();" class="parent"><span>业主</span></a>
                 <div><ul>
                <li><a href="${ctx }/base/owner"><span>业主查询</span></a></li>
                 </ul></div>
         </li>  
         <li><a href="javascript:void();" class="parent"><span>车管理</span></a>
                 <div><ul>
                 <li><a href="${ctx }/base/barn" ><span>车库管理</span></a></li>
                <li><a href="${ctx }/base/paking" ><span>车位管理</span></a></li>
                 </ul></div>
         </li>  
         <li><a href="javascript:void();" class="parent"><span>查询</span></a>
          <div><ul>
                <li><a href="zhcx/zhcx.html" target="admin"><span>综合查询</span></a></li>
                <li><a href="zhcx/tjcx.html" target="admin"><span>统计查询</span></a></li>
          </ul></div>
                  
        </li>
        
        <li><a href="javascript:void();" class="parent"><span>报表</span></a>
          <div><ul>
                <li><a href="#" target="admin"><span>月报</span></a></li>
                <li><a href="#" target="admin"><span>日报</span></a></li>
            </ul></div>
        </li>
        <li><a href="javascript:void();" class="parent"><span>系统</span></a>
        	<div><ul>
       		<shiro:hasPermission name="admin">
				<li><a href="${ctx}/admin/user">Admin Users</a></li>
				<li><a href="${ctx}/admin/role" >Role Manager</a></li>
				<li><a href="${ctx}/admin/system/parameter" >参数标识管理</a></li>
				<li><a href="${ctx}/admin/system/info" >参数管理</a></li>
				<li class="divider"></li>
			</shiro:hasPermission>
				<li><a href="${ctx}/profile">Edit Profile</a></li>
				<li><a href="${ctx}/logout">Logout</a></li>
        	</ul></div>
        </li>
        </shiro:user>
        <li><a href="javascript:void();" class="parent"><span>预留</span></a></li>
        <li><a href="${ctx}/logout"><span>退出</span></a></li>
    </ul>
</div>
  <a href="http://apycom.com/">    </TD>
  <TD vAlign=top width=75  bgColor=002f3f>
      <TABLE height=46 cellSpacing=0 cellPadding=2 width="100%" border=0>
        <TBODY>
        <TR>
          <TD colSpan=3 bgcolor="002f3f"> <span class="STYLE2">&nbsp;</span></TD>
        </TR>
        <TR height=30>
          <TD height="22" align=middle vAlign=center bgcolor="002f3f">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
          <TD align=middle vAlign=center bgcolor="002f3f">&nbsp;</TD>
          <TD align=middle vAlign=center bgcolor="002f3f">&nbsp;</TD>
        </TR>
    </TBODY></TABLE>
      <div align="center"></div></TD>
  </TR>
     <tr>
     <td height="9" colspan="3" bgcolor="002f3f"> <img height=9 src="${ctx}/static/images/top_logo_up.jpg"  width=1501></td>
    </tr>
    <tr>
     <td height="8" colspan="3" bgcolor="002f3f"> </td>
    </tr>
    </TBODY></TABLE>
    <shiro:user>
	<div id="divQQbox" class="QQbox" style="left: -262px; top: 0px; ">
		<div id="divOnline" class="Qlist" >
			<div class="OnlineLeft">
				<div class="con" style="font-size: 2">
					<div style="background: white;">
						<p><span>小区:</span>  <span id="commSpan">adfasdf</span></p><br/>
						<p><span>楼栋:</span>  <span id="buildSpan">fadsfasdf</span></p>
					</div>
				</div>
			</div>
			<div class="OnlineBtn"><font size="2">快<br/>速<br/>查<br/>询</font></div>
	  </div>
	</div>
</shiro:user>
<!-- 
<div id="header">
	<div id="title">
	    <h1>QuickStart示例<small>--TodoList应用演示</small>
	    <shiro:user>
			<div class="btn-group pull-right">
				<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
					<i class="icon-user"></i> <shiro:principal property="name"/>
					<span class="caret"></span>
				</a>
			
				<ul class="dropdown-menu">
					<shiro:hasPermission name="admin">
						<li><a href="${ctx}/admin/user">Admin Users</a></li>
						<li><a href="${ctx}/admin/role" >Role Manager</a></li>
						<li class="divider"></li>
					</shiro:hasPermission>
					<li><a href="${ctx}/profile">Edit Profile</a></li>
					<li><a href="${ctx}/logout">Logout</a></li>
				</ul>
			</div>
		</shiro:user>
		</h1>
	</div>
</div>
 -->